function double(num) {
  return num * 2
}

function square(num) {
  return num ** 2
}

var count = 10
var result = square(double(count))
console.log(result);


function composeFn(f1, f2) {
  return function(count) {
    return f2(f1(count))
  }
}
var newFn = composeFn(double, square)
console.log(newFn(count));

